﻿<include file='Public:header' />
	<link rel='stylesheet' href='__APP__/Public/js/kindeditor/themes/default/default.css' type='text/css' >
	<script type="text/javascript" src="__APP__/Public/js/kindeditor/kindeditor-min.js"></script>
	<script type="text/javascript" src="__APP__/Public/js/kindeditor/zh_CN.js"></script>
	
<style>
.catchword{margin:0;}
.catchword strong, b {font-weight: bold;}
.catchword em {font-style: italic;}
</style>
	
    <div class="wrapper">
        <div class="main">
        	<div class="userContainer">
        		<include file="Share:userViewIndexHeader" />
        		<div class="alllife">
        			<input id='uid' type='hidden' value='{$uid}' /> 
	                <div id='words' class='catchword'  ></div>
                </div>
            </div>
        </div>
    </div>
    <div style='display:none' id='tmpcon'></div>
<script>
$(function(){
	loadCatchword();
});


function loadCatchword() {
	var uid = $('#uid').val();
	if (uid == '') {
		alert('{$Think.lang.pls_enter_basic_info}');
		return false;
	}
	var html = '';	
	$.post('/Users/loadCatchword', {uid:uid}, function(data){
		var obj = $.parseJSON(data);
		if (obj.status == 1) {
			var words = obj.data;
			if (words != undefined) {
				for(i = 0; i < words.length; i++) {
					j = i+1;
					var content = HtmlDecode(words[i].content);
					content = content.replace('\\', '');
					html = html + "<span id="+words[i].id+">"+j+". " + content +"</span><br />";
					//html = words[0].content;
				}
				//var tmp = $('#words').html(html);
				$('#words').html(html);	
			}
		} else if (obj.status == 0) {
			alert('{$Think.lang.load_data_failed}');
		} 		
	});
}

</script>

<if condition="$group neq 'visiter' " >
	<include file="Share:floatBar"/>
	<br/>
</if>

<include file='Public:footer' />
<br/><br/><br/><br/>
<div style="position: fixed;  left: 0px; bottom: 0px; ">	
	<include file="Share:userViewNavigate" />
	</div>